<?php use \Inationsoft\NS; use \Inationsoft\NS\UI\Widget; ?> 
<form class="stdform stdform2" method="post" action="<?php echo $app_base_url; ?>/save">
<div class="breadcrumbwidget">
	<ul class="breadcrumb">
		<li><a href="http://localhost/~inanta/simtur">Beranda</a> <span class="divider">/</span></li>
		<li><a href="<?php echo $app_base_url; ?>">Tautan Menu</a> <span class="divider">/</span></li>
		<li class="active">Tambah</li>
	</ul>
</div><!--breadcrumbs-->
<div class="pagetitle">
	<div class="row-fluid">
		<div class="span6"><h1>Tautan Menu</h1><span>Tautan Menu</span></div>
		<div class="span6">
			<div id="header-button">
				<?php echo new Widget\Hidden('token', $token); ?> 
				<ul>
					<li><?php echo new Widget\Bootstrap\Button('dispatch', 'save', Widget\Button::BUTTON_SUBMIT, '<span class="icon-ok"></span> Simpan'); ?></li>
					<li><?php echo new Widget\Bootstrap\HyperlinkButton(null, $app_base_url . '/index/' . $datas['mid'], '<span class="icon-remove"></span> Batal'); ?></li>
				</ul>
			</div>
		</div>
	</div>
</div><!--pagetitle-->

<div class="maincontent">
	<div class="contentinner">
		<h4 class="widgettitle nomargin shadowed">Tambah Tautan Menu</h4>
		<div class="widgetcontent bordered shadowed nopadding">
 
			<div class="field-section">
				<label class="field-label">URL</label>
				<div class="field">
					<?php echo new Widget\Text('url', $datas['url']); ?>
					<?php echo new Widget\Hidden('mid', $datas['mid']); ?> 
				</div>
			</div>
 
			<div class="field-section">
				<label class="field-label">Menu Item Name</label>
				<div class="field">
					<?php echo new Widget\Text('menu_link_name', $datas['menu_link_name']); ?> 
				</div>
			</div>
 
			<div class="field-section">
				<label class="field-label">Enabled</label>
				<div class="field">
					<?php echo new Widget\Bootstrap\SwitchButton('enabled', '1', empty($datas['enabled']) ? false : true, array('data-on-label' => 'YES', 'data-off-label' => 'NO')); ?> 
				</div>
			</div>
 
		</div>
	</div><!--contentinner-->
</div><!--maincontent-->
</form>